<script setup lang="ts">
import { useRouter } from 'vue-router'
import { Button } from '@/components/ui/button'

const router = useRouter()

function login() {
  localStorage.setItem('user', 'admin')
  router.push('Dashboard')
}
</script>


<template>
  fsfsafsfs - login
  <Button @click="login">登录</Button>
</template>